package com.couldsail.takeaway.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.couldsail.takeaway.pojo.entity.AddressBook;
import com.couldsail.takeaway.pojo.vo.AddressBookVO;

import java.util.List;

public interface AddressBookService extends IService<AddressBook> {
    void insert(AddressBook addressBook);

    void setDefault(AddressBook addressBook);

    void updateAddress(AddressBookVO addressBook);

    void deleteAddress(Long id);

    AddressBookVO getDefaultAddress();

    List<AddressBookVO> userList();

    void insertAddressBook(AddressBookVO addressBookVO);
}
